import jsonp from 'common/js/jsonp'

export const COMMON_PARAMS = {
  loginUin: 0,
  hostUin: 0,
  format: 'jsonp',
  inCharset: 'utf8',
  outCharset: 'utf-8',
  notice: 0,
  platform: 'yqq',
  needNewCode: 0
}
export const ERR_OK = 0

// export function getKey() {
//   const url = 'https://c.y.qq.com/base/fcgi-bin/fcg_music_express_mobile3.fcg';
//   const data = Object.assign({}, COMMON_PARAMS, {
//     g_tk: 1628799994,
//     loginUin: 673908452,
//     hostUin: 0,
//     format: 'json',
//     cid: 205361747,
//     uin: 673908452,
//     songmid: '001Qu4I30eVFYb',
//     filename: 'C400001Qu4I30eVFYb.m4a',
//     guid: 2587227320
//   })

//   return jsonp(url, data, {
//     param: 'callback',
//     prefix: 'MusicJsonCallback1128556284193214'
//   })
// }